<?php
include("../libreria/config.php");
include("../libreria/db.php");

$sql = "select * from materia where area = '$_REQUEST[area]'";
	
		$result = dbQuery($sql);
		$numrows = dbNumRows($result);
			if($numrows != 0)
				{					
					while ($fila = dbFetchAssoc($result))
					{	
						echo "<input type='checkbox'  class='element checkbox' name='".$fila['id_materia']."'/>".$fila['nombre_materia']."<br>";
					}
					mysql_free_result($result);
				}	
		?>
</table>